<div class="path">
    <i class="iconfont icon-shouye1"></i>
    <a href="{url('admin/default/welcome')}">开始</a> / 
    <a href="javascript:void(0);">维修检验</a>
</div>
<form id="form" action="{url('outwarehouse/index')}" method="post">
<div class="table-search fn-clear">
<ul>
<li>
    <span class="fn-tar">新IMEI号:</span>
    <span class="sinput"><input class="input" type="text" name="new_imei" value="{$new_imei}" /></span>
</li>
<li>
    <span class="fn-tar">旧IMEI号:</span>
    <span class="sinput"><input class="input" type="text" name="imei" value="{$imei}" /></span>
</li>
<li>
    <span class="fn-tar">质检时间起:</span>
    <span class="sinput"><input class="input ui-time" type="text" name="start_time" value="{$start_time}" /></span>
</li>
<li>
    <span class="fn-tar">质检时间止:</span>
    <span class="sinput"><input class="input ui-time" type="text" name="end_time" value="{$end_time}" /></span>
</li>
<li>
    <span class="fn-tar">是否紧急:</span>
    <span class="sinput">
<select class="select" name="is_urgent">
    <option value="" selected="selected">全部</option>
    <option value="1" {if $is_urgent == 1} selected="selected"{/if}>紧急</option>
    <option value="2" {if $is_urgent == 2} selected="selected"{/if}>一般</option>
</select>
    </span>
</li>
<li><input type="submit" value="开始查找手机" class="button button-green submit" /></li>
</ul>
</div>
</form>
<div class="m10">
<table class="table table-border">
<thead>
    <tr>
        <th class="fn-tac w120">跟踪号</th>
        <th class="fn-tac w100">新IMEI号</th>
        <th class="fn-tac w100">IMEI号</th> 
        <th>厂商</th>
        <th>机型</th>
        <th class="fn-tac w120">购买日期</th>
        <th class="fn-tac w60">是否保内</th>
        <th class="fn-tac w60">是否紧急</th>
        <th class="fn-tac w120">质检时间</th>
        <th>质检结论</th>
        <th class="fn-tac w100">质检员</th>
        <th class="fn-tac w60">操作</th>
    </tr>
</thead>
<tbody>
{loop $list $vo}
<tr>
    <td class="fn-tac"><a title="维修详情" href="javascript:void(0);" url="{url('testing/reads',array(id=>$vo['id']))}" class="win">{$vo['number']}</a></td>
    <td class="fn-tac">{$vo['new_imei']}</td>
    <td class="fn-tac">{$vo['imei']}</td>
    <td>{$vo['manufacturer_name']}</td>
    <td>{$vo['producttype_name']}</td>
    <td class="fn-tac">{date('Y-m-d',$vo['shop_time'])}</td>
    <td class="fn-tac">{if $vo['overtime'] == '是'}<span class="badge">保内</span>{else}<span class="badge bg-red">过保</span>{/if}</td>
    <td class="fn-tac">{if $vo['is_urgent']}<span class="badge bg-red">加急</span>{else}<span class="badge">普通</span>{/if}</td>
    <td class="fn-tac">{date('Y-m-d',$vo['testing_time'])}</td>
    <td>{$vo['testing_text']}</td>
    <td class="fn-tac">{$vo['testing_admin_name']}</td>
    <td class="fn-tac tip">
        <a title="出库" href="{url('outwarehouse/edit',array(id=>$vo['id']))}">出库</a>
    </td>
</tr>
{/loop}
</tbody>
</table>
<div id="page" class="fn-clear">{$pager}</div>
</div>
<script type="text/javascript">
Do('base','form','date','dialog',function(){ 
  $('.win').click(function(){$(this).win();});
  $('.del').click(function(){$(this).del();});
  $('#form').forms({types:'post'});
})
</script>
